package com.dhsc.local.dao.impl.ywhc.zdsmzhcDaoImpl;

import com.dhsc.domain.jkzx.ywhc.zdsmzhc.ZdsmzdrVo;
import com.dhsc.domain.jkzx.ywhc.zdsmzhc.ZdsmzhcVo;
import com.dhsc.local.dao.ywhz.zdsmzhc.IZdsmzhcDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Description:中登实名制核查
 * @Author: CDW
 * @Date: 2024/3/29 9:52
 */
@Repository("zdsmzhcDao")
public class ZdsmzhcDaoImpl implements IZdsmzhcDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<ZdsmzhcVo> queryZdsmzhcInfo(ZdsmzhcVo zdsmzhcVo) {
        return localSqlSessionTemplate.selectList("ZdsmzhcMapper.queryZdsmzhcInfo",zdsmzhcVo);
    }

    @Override
    public int saveDrZdsmzxx( List<ZdsmzdrVo> list) {
        return localSqlSessionTemplate.insert("ZdsmzhcMapper.saveDrZdsmzxx",list);
    }

    @Override
    public void callzdsmzhc(Map<String, Object> map) {
        localSqlSessionTemplate.selectOne("ZdsmzhcMapper.callzdsmzhc",map);
    }

    @Override
    public void creatatableHfxx() {
        localSqlSessionTemplate.insert("ZdsmzhcMapper.creatatableHfxx");
    }

    @Override
    public List<ZdsmzhcVo> queryCjrq(ZdsmzhcVo zdsmzhcVo) {
        return localSqlSessionTemplate.selectList("ZdsmzhcMapper.queryCjrq",zdsmzhcVo);
    }

    @Override
    public void droptableHfxx() {
        localSqlSessionTemplate.selectOne("ZdsmzhcMapper.droptableHfxx");
    }

    @Override
    public List<ZdsmzhcVo> queryCzzdIp(ZdsmzhcVo list) {
        return localSqlSessionTemplate.selectList("ZdsmzhcMapper.queryCzzdIp",list);
    }

    @Override
    public List<ZdsmzhcVo> queryCzzdIpgsd(ZdsmzhcVo list) {
        return localSqlSessionTemplate.selectList("ZdsmzhcMapper.queryCzzdIpgsd",list);
    }

    @Override
    public List<ZdsmzhcVo> queryCzzdDh(ZdsmzhcVo list) {
        return localSqlSessionTemplate.selectList("ZdsmzhcMapper.queryCzzdDh",list);
    }

    @Override
    public List<ZdsmzhcVo> queryCzzdMac(ZdsmzhcVo list) {
        return localSqlSessionTemplate.selectList("ZdsmzhcMapper.queryCzzdMac",list);
    }

    @Override
    public List<ZdsmzhcVo> queryCzzdJybd(ZdsmzhcVo list) {
        return localSqlSessionTemplate.selectList("ZdsmzhcMapper.queryCzzdJybd",list);
    }

    @Override
    public List<ZdsmzhcVo> queryCzzdTsdIp(ZdsmzhcVo list) {
        return localSqlSessionTemplate.selectList("ZdsmzhcMapper.queryCzzdTsdIp",list);
    }

    @Override
    public List<ZdsmzhcVo> queryGlsjxx(ZdsmzhcVo zdsmzhcVo) {
        return localSqlSessionTemplate.selectList("ZdsmzhcMapper.queryGlsjxx",zdsmzhcVo);
    }

    @Override
    public void droptableGlxx() {
        localSqlSessionTemplate.selectOne("ZdsmzhcMapper.droptableGlxx");
    }

    @Override
    public void creatatableGlxx() {
        localSqlSessionTemplate.insert("ZdsmzhcMapper.creatatableGlxx");
    }

    @Override
    public List<ZdsmzhcVo> queryCzzdHdd(ZdsmzhcVo zdsmzhcVo) {
        return localSqlSessionTemplate.selectList("ZdsmzhcMapper.queryCzzdHdd",zdsmzhcVo);
    }

    @Override
    public List<ZdsmzhcVo> queryZdsmzhcXx(ZdsmzhcVo z) {
        return localSqlSessionTemplate.selectList("ZdsmzhcMapper.queryZdsmzhcXx",z);
    }

    @Override
    public ZdsmzhcVo queryCcgcZxqk(ZdsmzhcVo z) {
        return localSqlSessionTemplate.selectOne("ZdsmzhcMapper.queryCcgcZxqk",z);
    }



    @Override
    public ZdsmzhcVo queryCcgcZxqks(ZdsmzhcVo z) {
        return localSqlSessionTemplate.selectOne("ZdsmzhcMapper.queryCcgcZxqks",z);
    }

    @Override
    public int deleteDrZdsmzxx(Integer rq) {
        return localSqlSessionTemplate.delete("ZdsmzhcMapper.deleteDrZdsmzxx",rq);
    }

    @Override
    public int queryIpgsdFyQk(ZdsmzhcVo z) {
        return localSqlSessionTemplate.selectOne("ZdsmzhcMapper.queryIpgsdFyQk",z);
    }

    @Override
    public int saveDqcz(ZdsmzhcVo z) {
        return localSqlSessionTemplate.insert("ZdsmzhcMapper.saveDqcz",z);
    }

}
